package cn.dsscm.dao;

import cn.dsscm.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    //登录
    @Select("select * from t_users where telephone=#{telephone} and password=#{password}")
    public User login(User user);

    //注册
    @Insert("insert into t_users values(null,#{telephone},#{password})")
    public Integer register(User user);
}
